package com.bc.bclocalserviceapihttp.controller;

import com.bc.bcapi.service.T_Usdt_exchange_priceService;
import com.bc.commonentity.common.JsonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Name UsdtExchangeController
 * @Description
 * @Author douhaichao
 * @Date 2018/9/11 15:27
 * @Version 1.0
 **/
@RestController
@Api("USDT转换接口")
@RequestMapping("usdtexchange")
public class UsdtExchangeController {
    @Autowired
    T_Usdt_exchange_priceService t_usdt_exchange_priceService;

    @ApiOperation("去币安同步usdt的价格")
    @RequestMapping(value = "setusdtexchangeprice",method = RequestMethod.GET)
    public JsonResult setUsdtExchangePrice() {
        return t_usdt_exchange_priceService.setUsdtExchangePrice();
    }
}
